package com.yupi.springbootinit.service.impl;

import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.json.JSONUtil;
import com.yupi.springbootinit.model.entity.Permission;
import org.springframework.stereotype.Service;

@Service
public class RuleConfigManager {

    public static Permission permission;

    static {
        String json = ResourceUtil.readUtf8Str("biz/rule.json");
        permission = JSONUtil.toBean(json, Permission.class);
    }

}

